package com.xiaoqi.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xiaoqi.dao.SetmealMobileDao;
import com.xiaoqi.pojo.Setmeal;
import com.xiaoqi.service.SetmealMobileService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author PC
 * creationTime: 2022/11/12 10:27
 */
@Service(interfaceClass =SetmealMobileService.class )
public class SetmealMobileServiceImpl implements SetmealMobileService {

    @Autowired
    private SetmealMobileDao setmealMobileDao;

    /**
     * 查询所有套餐
     * @return
     */
    @Override
    public List<Setmeal> findAll() {
        return setmealMobileDao.findAll();
    }

    /**
     * 更具套餐id查询套餐详情包括检查组与检查项
     * @param id
     * @return
     */
    @Override
    public Setmeal findDetailById(Integer id) {
        return setmealMobileDao.findDetailById(id);
    }

    /**
     * 通过id查询套餐
     * @param id
     * @return
     */
    @Override
    public Setmeal findById(Integer id) {
        return setmealMobileDao.findById(id);
    }
}
